home *** CD-ROM | disk | FTP | other *** search
/ Chaos CD Blue / Chaos_CD_Blue__[1999].iso / contrib / security / [SSL-Talk_List_FAQ]_Secure_Sockets_Layer_Discussion_List_FAQ_v1.1.1 next >
Internet Message Format  |  1999-11-21  |  63KB

  1. Path: senator-bedfellow.mit.edu!faqserv
  2. From: Shannon Appel <SAppel@consensus.com>
  3. Newsgroups: alt.security,comp.security.misc,comp.protocols,sci.crypt,comp.infosystems.www.misc,alt.answers,comp.answers,news.answers,sci.answers
  4. Subject: [SSL-Talk List FAQ] Secure Sockets Layer Discussion List FAQ v1.1.1
  5. Supersedes: <computer-security/ssl-talk-faq_937824165@rtfm.mit.edu>
  6. Followup-To: poster
  7. Date: 22 Oct 1999 07:43:50 GMT
  8. Organization: Consensus Development Corporation, Berkeley, CA, US; http://www.consensus.com/
  9. Lines: 1533
  10. Approved: news-answers-request@MIT.EDU
  11. Distribution: world
  12. Expires: 5 Dec 1999 07:38:01 GMT
  13. Message-ID: <computer-security/ssl-talk-faq_940577881@rtfm.mit.edu>
  14. NNTP-Posting-Host: penguin-lust.mit.edu
  15. Summary: This document is a summary of FAQ (Frequently Asked
  16.     Questions) found on the SSL-Talk discussion list regarding technical
  17.     implementation issues of the Secure Sockets Layer protocol, a
  18.     transport level security protocol used for securing web servers and
  19.     clients (such as Netscape Navigator) and other internet
  20.     applications.
  21. X-Last-Updated: 1998/11/16
  22. Originator: faqserv@penguin-lust.MIT.EDU
  23. Xref: senator-bedfellow.mit.edu alt.security:54051 comp.security.misc:55006 sci.crypt:112216 comp.infosystems.www.misc:66823 alt.answers:45076 comp.answers:38177 news.answers:169394 sci.answers:10764
  24.  
  25. Content-type: text/x-usenet-FAQ;
  26.     version=1.1;
  27.     title="[SSL-Talk List FAQ] Secure Sockets Layer Discussion List FAQ v1.1.1"
  28. Archive-name: computer-security/ssl-talk-faq
  29. Posting-Frequency: monthly
  30. Last-modified: Nov 16 12:00:00 PST 1998
  31. Version: 1.1.1 (text) Mon Nov 16 12:00:00 PST 1998
  32. URL: http://www.consensus.com/security/ssl-talk-faq.html
  33. Copyright-Notice: (c) Copyright 1996-1998 by Consensus Development Corporation -- All Rights Reserved
  34.  
  35.                               SSL-Talk FAQ
  36.             Secure Sockets Layer Discussion List FAQ v1.1.1
  37.  
  38.                       Mon Nov 16 12:00:00 PST 1998
  39.  
  40.                            FAQ Maintained by:
  41.                   Shannon Appel <SAppel@consensus.com>
  42.                     Consensus Development Corporation
  43.                         <http://www.consensus.com/>
  44.  
  45.          The latest edition of this FAQ can always be found at:
  46.           <http://www.consensus.com/security/ssl-talk-faq.html>
  47.            <http://www.consensus.com/security/ssl-talk-faq.txt>
  48.  
  49.   Copyright (c) 1996-1998 Consensus Development Corporation - All Rights 
  50.   Reserved
  51.  
  52.     ********************************************************************* 
  53.     Due to the November 15, 1998 dissolution of the SSL-Talk mailing 
  54.     list, this will be the last version of this FAQ in its current form. 
  55.     It will be replaced by a more general TLS & SSL FAQ in the near 
  56.     future that is not tied to any mailing list or newsgroup. 
  57.     *********************************************************************
  58.  
  59.     All information contained in this work is provided "as is." All
  60.     warranties, expressed, implied or statutory, concerning the accuracy
  61.     of the information of the suitability for any particular use are
  62.     hereby specifically disclaimed. While every effort has been taken to
  63.     ensure the accuracy of the information contained in this work,
  64.     the authors assume(s) no responsibility for errors or omissions or
  65.     for damages resulting from the use of the information contained
  66.     herein.
  67.  
  68.     This work may be copied in any printed or electronic form for
  69.     non-commercial, personal, or educational purposes if the work is not
  70.     modified in any way, provided that the copyright notice, the notices 
  71.     of any other author included in this work, and this copyright 
  72.     agreement appear on all copies.
  73.  
  74.     Consensus Development Corporation also grants permission to
  75.     distribute this work in electronic form over computer networks for
  76.     other purposes, provided that, in addition to the terms and
  77.     restrictions set forth above, Consensus Development Corporation
  78.     and/or other cited authors are notified and that no fees are charged
  79.     for access to the information in excess of normal online charges
  80.     that are required for such distribution.
  81.  
  82.     This work may also be mentioned, cited, referred to or described
  83.     (but not copied or distributed, except as authorized above) in
  84.     printed publications, on-line services, other electronic
  85.     communications media, and otherwise, provided that Consensus
  86.     Development Corporation and any other cited author receives
  87.     appropriate attribution.
  88.  
  89.     Comments about, suggestions about, or corrections to this document
  90.     are welcomed. If you would like to ask us to change this document
  91.     in some way, the method we appreciate most is for you to actually
  92.     make the desired modifications to a copy of the posting, and then to
  93.     send us the modified document, or a context diff between the posted
  94.     version and your modified version (if you do the latter, make sure
  95.     to include in your mail the "Version:" line from the posted
  96.     version). Submitting changes in this way makes dealing with them
  97.     easier for us and helps to avoid misunderstandings about what you
  98.     are suggesting.
  99.  
  100.     Many people have in the past provided feedback and corrections; we
  101.     thank them for their input.
  102.  
  103.     In particular, many thanks to:
  104.  
  105.         Christopher Allen <ChristopherA@consensus.com>
  106.         Shannon Appel <SAppel@consensus.com>
  107.         Nelson Bolyard <NelsonB@netscape.com>
  108.         Tim Dierks <TimD@consensus.com>
  109.         Eric Greenberg <ericg@netscape.com>
  110.         Charles Neerdaels <chuckn@netscape.com>
  111.         Bruce Schneier <schneier@counterpane.com>
  112.         Tom Weinstein <tomw@netscape.com>
  113.         Jonathan Zamick <JonathanZ@consensus.com>
  114.  
  115.     Remaining ambiguities, errors, and difficult-to-read passages are
  116.     not their fault. :)
  117.     
  118. ------------------------------
  119.  
  120. CONTENTS
  121.  
  122.     1) THE SSL-TALK LIST
  123.     2) GENERAL SSL QUESTIONS
  124.     3) USING PROXIES, GATEWAYS AND FIREWALLS WITH SSL
  125.     4) SSL PROTOCOL QUESTIONS
  126.     5) CERTIFICATE RELATED QUESTIONS
  127.     6) SSL IMPLEMENTATION QUESTIONS
  128.         6.1) NETSCAPE QUESTIONS
  129.         6.2) MICROSOFT QUESTIONS
  130.     7) SSL TOOLKIT QUESTIONS
  131.         7.1) SSLREF QUESTIONS
  132.         7.2) SSL PLUS QUESTIONS
  133.         7.3) SSLEAY QUESTIONS
  134.  
  135.  
  136. ------------------------------
  137.  
  138. 1) THE SSL-TALK LIST
  139.  
  140. This section contains information about the SSL-Talk list.
  141.  
  142.  
  143. 1.1) What is the SSL-Talk List?
  144.  
  145.     The SSL-Talk List was an email list intended for discussion of the
  146.     technical issues of implementing the SSL protocol. It ceased to exist 
  147.     on November 15, 1998.
  148.  
  149.     Past discussions included issues of software development,
  150.     cryptanalysis of the protocol and of its various implementations,
  151.     testing, interoperability, the applicability of SSL to additional
  152.     TCP-based applications, infrastructure growth questions, etc.
  153.  
  154. 1.1.1) Do archives of the SSL-Talk List exist?
  155.  
  156.     Yes. An archive is maintained at: 
  157.     
  158.        <http://www.egroups.com/list/ssl-talk/>
  159.  
  160.     It covers the list from 1995-1998 and is filled with useful 
  161.     information.
  162.     
  163.     We are not aware of any plain text archives of the list.
  164.  
  165.  
  166. 1.2) What is SSL?
  167.  
  168.     SSL is the Secure Sockets Layer protocol. Version 2.0 originated by
  169.     Netscape Development Corporation, and version 3.0 was designed with
  170.     public review and input from industry, and is defined at
  171.         <http://home.netscape.com/eng/ssl3/index.html>
  172.  
  173.  
  174. 1.2.1) What is TLS?
  175.  
  176.     TLS is the Transport Layer Security protocol. It is effectively SSL 
  177.     3.1 and was submitted to the IETF standards committee for change 
  178.     control in 1996. It should be close to release.
  179.  
  180.  
  181. 1.3) Has netscape replaced the SSL-Talk mailing list?
  182.  
  183.     Yes. Netscape, the host of the old ssl-talk mailing list, has 
  184.     replaced it with a newsgroup.
  185.     
  186.     The newsgroup netscape.dev.ssl is now available via two means:
  187.  
  188.     a) from <snews://secnews.netscape.com/>
  189.     
  190.     Note: snews is nntp over SSL. Supported in Communicator 4.x. 
  191.  
  192.     b) from 
  193.     
  194.     <http://www.dejanews.com/
  195.         dnquery.xp?QRY=netscape.dev.ssl&DBS=2&maxhits=25&format=terse> 
  196.  
  197.  
  198. 1.4) Are there any other SSL mailing lists?
  199.  
  200.     Some people prefer mailing lists to newsgroups. Fortunately, several 
  201.     other mailing lists exist to discuss SSL.
  202.  
  203.     THE SSL DEVELOPER LIST
  204.  
  205.     This is a mailing list specifically geared toward application     
  206.     developers who are incorporating SSL or TLS into their products. It 
  207.     is hosted by Consensus Development, a division of Certicom, who has 
  208.     helped to develop the TLS specifications. To join, send a message to:
  209.  
  210.       join-ssl-dev@lists.consensus.com
  211.  
  212.     THE SSL LIST
  213.  
  214.     As with the older SSL-Talk mailing list, the purpose of this 
  215.     mailing list is to discuss any SSL & TLS related issues. It covers 
  216.     the whole spectrum of issues, from beginners on up and is more 
  217.     oriented toward users of SSL-enabled applications. To subscribe 
  218.     simply send e-mail to:
  219.  
  220.     ssl-subscribe@engine.ca
  221.  
  222.     THE SSL-USERS LIST
  223.  
  224.     This is a list concerning SSLeay, a public implementation of SSL. To 
  225.     subscribe send mail to: 
  226.  
  227.         factotum@lists.cryptsoft.com 
  228.  
  229.     The command "subscribe ssl-users" must appear in the body of the 
  230.     message.
  231.     
  232.     THE IETF-TLS LIST
  233.  
  234.     This is a mailing list dedicated to the writing of the TLS     
  235.     specification for the IETF. To subscribe, send a message to:
  236.     
  237.         join-ietf-tls@lists.consensus.com
  238.  
  239. ------------------------------
  240.  
  241. 2) GENERAL SSL QUESTIONS
  242.  
  243. This section contains general information on SSL and the SSL
  244. protocol.
  245.  
  246.  
  247. 2.1) What is the current version of the SSL protocol?
  248.  
  249.     The current version is SSL 3.0, as documented at
  250.         <http://home.netscape.com/eng/ssl3/index.html>
  251.  
  252.     Errata to the SSL 3.0 Specification is periodically posted on
  253.     the SSL discussion list, and is available at
  254.         <http://home.netscape.com/eng/ssl3/ssl-errata.html>
  255.  
  256.     Netscape has submitted SSL 3.0 to the IETF-TLS Working Group
  257.     as an Internet Draft (see the section 4.5 of this FAQ for more
  258.     info on TLS). This will be TLS 1.0:
  259.     <http://www.ietf.org/internet-drafts/
  260.         draft-ietf-tls-protocol-05.txt>    
  261.  
  262.     The previous version of SSL, version 2.0 is documented at
  263.         <http://home.netscape.com/newsref/std/SSL_old.html>
  264.  
  265.  
  266. 2.2) Where can I get a "management overview" of SSL and web security?
  267.  
  268.     There is a brief introduction on how Netscape uses public key
  269.     cryptography in the SSL protocol called "Using Public Key
  270.     Cryptography" at
  271.         <http://home.netscape.com/newsref/ref/rsa.html>
  272.  
  273.     An overview on certificates and VeriSign's Digital IDs is at
  274.         <http://digitalid.verisign.com/crp_intr.htm>.
  275.  
  276.     General information on Netscape security can be found in a
  277.     set of web pages called "Network Security Solutions", at:
  278.         <http://home.netscape.com/products/security/index.html>
  279.  
  280.  
  281. 2.3) Where can I get a more in-depth look at SSL and web security?
  282.  
  283.     The online version of the technical specifications for the SSL 3.0
  284.     protocol is at
  285.         <http://home.netscape.com/eng/ssl3/ssl-toc.html>
  286.  
  287.     A PostScript version is also available at
  288.         <http://home.netscape.com/eng/ssl3/index.html>
  289.  
  290.     A FAQ for SSLeay, a freeware implementation which support SSL 2.0, 
  291.     SSL 3.0, and TLS 1.0, is available at
  292.         <http://www.psy.uq.oz.au/~ftp/Crypto/>
  293.  
  294.     A rather broad list of public key related documents, with a focus on
  295.     certificates and standards can be found at
  296.     <http://www.xcert.com/~marcnarc/PKI/>
  297.  
  298.  
  299. 2.4) What software supports SSL 2.0 and SSL 3.0?
  300.  
  301.     A list of web servers that support SSL 3.0 can be found using the 
  302.     powersearch at:
  303.         <http://webcompare.internet.com>
  304.  
  305.     SSL is not just for web servers and is supported by numerous other 
  306.     internet clients and servers.
  307.  
  308.     
  309. 2.5) What are the laws regarding the import and export of cryptography in 
  310. various countries?
  311.  
  312.     There is an impressive "International Law Crypto Survey" of
  313.     cryptographic laws and regulations throughout the world at
  314.         <http://cwis.kub.nl/~frw/people/koops/lawsurvy.htm>
  315.  
  316.     RSA Data Security, Inc. offers an Acrobat version of their
  317.     "Frequently Asked Questions: Export" at
  318.         <http://www.rsa.com/PUBS/exp_faq.pdf>
  319.  
  320.     Other information on US export issues can be found on
  321.     the Electronic Frontier Foundation's web site at
  322.         <http://www.eff.org/>
  323.  
  324.     Canadian export issues are covered at
  325.         <http://insight.mcmaster.ca/org/efc/pages/doc/crypto-export.html>
  326.  
  327.  
  328. ------------------------------
  329.  
  330. 3) USING PROXIES, GATEWAYS, AND FIREWALLS WITH SSL
  331.  
  332. This section contains information on how the SSL protocol interacts
  333. with proxy servers, security gateways, and firewalls.
  334.  
  335.  
  336. 3.1) What is a proxy server?
  337.  
  338.     A proxy server is a computer program that resides on your firewall
  339.     and acts as a conduit between your computer and the broader
  340.     Internet. In addition to acting as network guardian and logging
  341.     traffic, a proxy server can also provide an enterprise cache for
  342.     files as well as replication and site-filtering services.
  343.  
  344.     Any application which needs to communicate through a proxy has to
  345.     negotiate with the proxy first before continuing through the
  346.     firewall. Netscape Navigator works with many different types of
  347.     proxies (such as the CERN proxy server and their own Netscape Proxy
  348.     Server) and gateways that use the SOCKS protocol.
  349.  
  350.     One problem with SSL-based traffic is that it does not allow
  351.     caching and replication with proxy servers. For a proxy server to
  352.     support SSL it must either support SOCKS (a protocol independent 
  353.     proxy mechanism), or use a special SSL Tunneling protocol. The 
  354.     Netscape Proxy Server supports both SOCKS and the SSL Tunneling 
  355.     protocol.
  356.  
  357.  
  358. 3.2) How does SSL work through (application level) firewalls,
  359. gateways and proxy servers?
  360.  
  361.     SSL was designed to provide security between client and server and
  362.     to avoid any kind of 3-way man-in-the-middle attack. Thus SSL cannot
  363.     be proxied through traditional application level firewalls (such as
  364.     the CERN proxy server) because SSL considers a proxy server to be a 
  365.     middleman.
  366.  
  367.     The simplest alternative to this problem is to use a packet
  368.     filtering firewall. You set it up to open a reserved and trusted
  369.     port for the SSL+HTTP or SSL+NNTP services (443 or 563 respectively)
  370.     allowing all traffic on those ports to be passed through
  371.     unrestricted. The risk with this solution is that an internal
  372.     attacker could attempt to use these trusted ports without using SSL
  373.     and there is no way for the firewall to know.
  374.  
  375.     SSL also can work with gateways that support the SOCKS protocol, a
  376.     protocol independent proxy mechanism. SOCKS is a generic byte
  377.     forwarding gateway between client and server and generally works
  378.     at the socket level. If all you want is TCP/UDP restrictions based on
  379.     client IP or server IP, SOCKS works fine.
  380.  
  381.     However, most non-SSL HTTP proxies work at the protocol level and
  382.     have the ability to understand header information related to the
  383.     protocol. This goes beyond SOCKS to allow the firewall administrator
  384.     to use the header information for filtering and/or monitoring the
  385.     traffic. Also, SOCKS does not offer the firewall administrator
  386.     enough information about the request to let it decide whether to
  387.     allow it and whether to log the request.
  388.  
  389.     A more secure approach is to use a firewall that supports the SSL
  390.     Tunneling CONNECT extension method as described in the Internet
  391.     draft
  392.  
  393.         <http://search.ietf.org/internet-drafts/
  394.             draft-luotonen-web-proxy-tunneling-01.txt>
  395.  
  396.     In SSL Tunneling, the client initiates an SSL connection via normal
  397.     HTTP then handshakes and creates a secure connection to the server
  398.     via a byte-forwarding tunnel. The proxy has access to the
  399.     client-proxy request headers, but the session is encrypted. Once
  400.     the handshake occurs, the proxy acts just like a SOCKS gateway. This
  401.     allows the firewall to monitor the requests, but not the traffic.
  402.  
  403.     The biggest difference between the two methods is that when using
  404.     SOCKS, DNS resolution is the responsibility of the client, whereas
  405.     when requests are forwarded through a proxy, DNS resolution is the
  406.     responsibility of the proxy.
  407.  
  408.     The are three additional things that the SSL Tunneling mechanism
  409.     does with the proxy server that do not happen when using SOCKS:
  410.  
  411.         * The client sends a "user agent" message (for example,
  412.           "Mozilla/3.0/Macintosh").
  413.  
  414.         * The proxy can send to the client an authorization request
  415.           allowing the administrator to use passwords to control external
  416.           Internet access.
  417.  
  418.         * The standard is more easily extensible. For example, the client
  419.           could, in theory, send the URL being requested (or anything
  420.           else) to the firewall. However, there is no standard to support
  421.           this behavior and as far as we know there are no products which
  422.           do it.
  423.  
  424.     The Netscape Proxy Server supports the SSL Tunneling CONNECT 
  425.     extension method for tunneling SSL, and the use of the proxy is 
  426.     described in 
  427.         
  428.     <http://developer.netscape.com/docs/manuals/proxy/adminux/    
  429.      encrypt.htm>
  430.  
  431.     Another solution, also available using the Netscape Proxy Server, is 
  432.     that the proxy server can spoof SSL on behalf of the internal client. 
  433.     The proxy will initiate SSL between itself and other servers on the 
  434.     Internet, but be unsecure inside the firewall between the proxy 
  435.     server and the client.
  436.  
  437.     This compromise means that client authentication is not possible;
  438.     only server authentication of the remote sites is available.
  439.     However, you gain the ability for client authentication between the
  440.     client and the proxy. The administrator must decide which is more
  441.     important, until such time as a better solution arises. The
  442.     description of this feature of the Netscape Proxy Server is at
  443.  
  444.     <http://developer.netscape.com/docs/manuals/proxy/adminux/    
  445.     encrypt.htm>
  446.  
  447.     Reverse proxies are a solution for serving secure content inside
  448.     a firewall to outside clients. For the Netscape Proxy Server
  449.     this is described at
  450.  
  451.     <http://developer.netscape.com/docs/manuals/proxy/adminux/    
  452.      revpxy.htm>
  453.  
  454.     It is possible for a proxy server to hold both client and server
  455.     keys for its internal clients. This allows SSL sessions to be
  456.     carried out twice: once between the client and proxy server, and
  457.     again between the proxy server and the secure server. Thus, the
  458.     proxy server can to listen in on the conversation without having the
  459.     private keys of external servers. Clearly this isn't reasonable for
  460.     the general internet, but it is a viable solution for corporate
  461.     requirements inside a firewall.
  462.  
  463.     Netscape Proxy Server 3.5 supports this feature. It can be used as 
  464.     described above, or simply to create a secure tunnel between sites 
  465.     across an insecure network. This is really multiple sessions of SSL, 
  466.     not an end-to-end secure connection.
  467.  
  468.     This means that 3.5 has full SSL support as opposed to just SSL
  469.     tunneling. It can therefore do client authentication and serve
  470.     documents like a secure server, or request documents like an
  471.     SSL-enabled client. SSL doesn't allow recursive encryption, so by
  472.     using it this way you lose the transparency of the proxy and get
  473.     multiple segments of secure connections, rather than a single
  474.     end-to-end connection.
  475.  
  476.  
  477. 3.3) Since SSL is supposed to withstand replay attacks, does this
  478. preclude proxy servers from caching the data?
  479.  
  480.     A proxy server must pass SSL directly through without caching.
  481.  
  482.  
  483. 3.4) What ports does SSL use?
  484.  
  485.     Theoretically SSL can transparently secure any TCP-based protocol
  486.     running on any port if both sides know the other side is using SSL.
  487.     However, in practice, separate port numbers have been reserved for
  488.     each protocol commonly secured by SSL -- this allows packet
  489.     filtering firewalls to allow such secure traffic through.
  490.  
  491.     As of October 1998, SSL has the following port numbers reserved
  492.     with the Internet Assigned Numbers Authority (IANA), a part of the
  493.     Internet Engineering Task Force (IETF):
  494.  
  495.         Keyword         Decimal         Description
  496.         -------         -------         -----------
  497.         nsiiops         261/tcp         IIOP Name Service over TLS/SSL
  498.         https           443/tcp         http protocol over TLS/SSL
  499.         ddm-ssl         448/tcp         DDM-SSL
  500.         smtps           465/tcp         smtp protocol over TLS/SSL 
  501.         nntps           563/tcp         nntp protocol over TLS/SSL
  502.         sshell          614/tcp         SSLshell
  503.         ldaps           636/tcp         ldap protocol over TLS/SSL 
  504.         ftps-data       989/tcp         ftp protocol, data, over TLS/SSL
  505.         ftps            990/tcp         ftp, control, over TLS/SSL
  506.         telnets         992/tcp         telnet protocol over TLS/SSL
  507.         imaps           993/tcp         imap4 protocol over TLS/SSL
  508.         ircs            994/tcp         irc protocol over TLS/SSL
  509.         pop3s           995/tcp         pop3 protocol over TLS/SSL
  510.  
  511.     A listing of all IANA port assignments can currently be found at 
  512.     <http://www.isi.edu/in-notes/iana/assignments/port-numbers>.
  513.    
  514.  
  515. 3.5) Do you have any information on sftp?
  516.  
  517.     SSL FTP has been assigned port 990 under the name ftps.
  518.  
  519.  
  520. ------------------------------
  521.  
  522. 4) SSL PROTOCOL QUESTIONS
  523.  
  524. This section contains more detailed information on the SSL protocol.
  525.  
  526.  
  527. 4.1) Does SSL protect users from replay attack by eavesdroppers or
  528. message interceptors?
  529.  
  530.     Yes. The client and the server each provide part of the random data
  531.     used to generate the keys for a connection. (The random portions of 
  532.     the connection that initiate a session, drawn from both the client 
  533.     and the server, are used to generate the master secret associated 
  534.     with that session.) Additionally, each record is protected with a 
  535.     MAC (Message Authentication Code) that contains a sequence number for 
  536.     the message.
  537.  
  538.  
  539. 4.2) Isn't encrypt-only SSL open to "man-in-the-middle" attacks?
  540.  
  541.     Yes, even though SSL 3.0 defines an encrypt-only cipher suite (the
  542.     SSL_DH_anon_WITH_DES_CBC_SHA cipher suite), there are many possible
  543.     attacks against it, and some recommend against using it. SSL *MUST* 
  544.     have strong server authentication or it becomes open to some attacks.
  545.     Netscape's browser and server products do not presently support 
  546.     encrypt-only cipher suites for this reason. 
  547.  
  548.  
  549. 4.3) When did MD5 get "disavowed"?
  550.  
  551.     It hasn't been truly "disavowed", but weaknesses have been
  552.     discovered such that some people believe that an alternative should
  553.     be found. These weaknesses were found by Dr. Hans Dobbertin
  554.     <dobbertin@skom.rhein.de> of the German Information Security Agency
  555.     in a paper called "Cryptanalysis of MD5 Compress" dated May 2, 1996.
  556.     A postscript version of the paper is at
  557.         <http://www.cs.ucsd.edu/users/bsy/dobbertin.ps>.
  558.  
  559.     SSL uses MD5 in combination with SHA for all negotiation. It also
  560.     uses MD5 alone in most negotiated cipher suites. However, in these
  561.     cases it is used with the HMAC construction, which strengthens it
  562.     such that there are no known problems with this construction.
  563.  
  564.     It has been proposed with TLS to start phasing out all use of MD5.
  565.  
  566.  
  567. 4.4) The record protocol sits underneath the other protocols, right?
  568. It appears that information can be sent only in blocks. Does
  569. there have to be a one-to-one mapping between write() calls on the
  570. client/server and SSL records? Is there some other blocking
  571. taking place when user data is being sent?
  572.  
  573.     The record layer takes a data stream from the higher layers and
  574.     fragments it into records. If the write is longer than 2^14 bytes
  575.     (with headers), the record layer will generate multiple records.
  576.     Multiple writes can be condensed into a single record.
  577.  
  578.  
  579. 4.5) It appears that there is no way in the SSL protocol to
  580. resynchronize blocks if they get out of synch. Is that true?
  581.  
  582.     Yes. SSL relies on an underlying reliable protocol to assure that
  583.     bytes are not lost or inserted. There was some discussion of
  584.     reengineering the future TLS protocol to work over datagram
  585.     protocols such as UDP, however TLS 1.0 does not support this.
  586.  
  587.  
  588. 4.6) Why does SSL3 have Diffie-Hellman encryption at all? What good is
  589. it? Exchanging random numbers that are encrypted with the server's (or
  590. client's) public key would seem to be an adequate way of getting the
  591. secret bits across. Why have DH as well?
  592.  
  593.     Anonymous DH key exchange doesn't require the use of certificates.
  594.     Ephemeral DH allows you to use signing-only certificates, and it
  595.     protects the session from future compromise of the server's private
  596.     key. Another advantage of DH is that the patent expired in 1997.
  597.  
  598.  
  599. 4.7) What is TLS? What happened at these meetings? Has anything come
  600. out of them yet?
  601.  
  602.     TLS is the Transport Layer Security Working Group of the IETF
  603.     (Internet Engineering Task Force). It is the working group
  604.     responsible for moving transport layer protocols such as SSL
  605.     through the standards tracks.
  606.  
  607.     IETF working groups do most of their activities through mailing
  608.     lists and thrice-annual IETF meetings. The first official IETF-TLS
  609.     Working Group meeting was June 1996 in Montreal. (Before then it was
  610.     an unofficial BOF "birds of a feather" group.)
  611.  
  612.     The home page for the IETF-TLS Working Group is at 
  613.         <http://www.ietf.org/html.charters/tls-charter.html>
  614.  
  615.     The discussion list for IETF-TLS is at IETF-TLS@CONSENSUS.COM. You
  616.     subscribe and unsubscribe by sending to IETF-TLS@CONSENSUS.COM with
  617.     subscribe or unsubscribe in the SUBJECT of the message. Archives of
  618.     the list are at
  619.         <http://www.imc.org/ietf-tls/mail-archive/>
  620.  
  621.     Minutes are available for a number of past IETF-TLS meetings.
  622.  
  623.     August 1998:
  624.     Not currently available
  625.                 
  626.     March 1998:
  627.     <http://www.ietf.org/proceedings/98mar/98mar-edited-114.htm>
  628.  
  629.     December 1997:
  630.     <http://www.ietf.org/proceedings/97dec/97dec-final-116.htm>
  631.  
  632.     April 1997:
  633.     <http://www.consensus.com/ietf-tls/minutes-9704.txt> 
  634.  
  635.     December 1996:
  636.         <http://www.consensus.com/ietf-tls/minutes-9612.txt>
  637.  
  638.     June 1996:
  639.         <http://www.consensus.com/ietf-tls/minutes-9606-1.txt>
  640.         <http://www.consensus.com/ietf-tls/minutes-9606-2.txt>
  641.  
  642.     May 1996:
  643.         <http://www.consensus.com/ietf-tls/minutes-9605.txt>
  644.  
  645.     A number of internet-draft documents have been submitted to the
  646.     IETF-TLS Working Group.
  647.  
  648.     The TLS Protocol 1.0 (Current Version 06):
  649.     <ftp://ftp.ietf.org/internet-drafts/
  650.         draft-ietf-tls-protocol-06.txt>
  651.  
  652.     Addition of Kerberos Cipher Suites to Transport Layer
  653.     Security (TLS):
  654.     <http://www.ietf.org/internet-drafts/
  655.         draft-ietf-tls-kerb-cipher-suites-03.txt>
  656.  
  657.     ECC Cipher Suites for TLS
  658.     <http://www.ietf.org/internet-drafts/draft-ietf-tls-ecc-00.txt>
  659.  
  660.     HTTP over SSL:
  661.     <http://www.ietf.org/internet-drafts/draft-ietf-tls-https-01.txt>
  662.  
  663.     An Internet AttributeCertificate Profile for Authorization 
  664.     <http://www.ietf.org/internet-drafts/
  665.         draft-ietf-tls-ac509prof-00.txt>
  666.  
  667.     TLS extensions for AttributeCertificate based authorization
  668.     <http://www.ietf.org/internet-drafts/
  669.         draft-ietf-tls-attr-cert-01.txt>
  670.  
  671.     The following internet drafts are expired, but are of historical
  672.     interest:
  673.  
  674.     Addition of Shared Key Authentication to Transport Layer
  675.     Security (TLS):
  676.         <draft-ietf-tls-passauth-00.txt>
  677.             (16885 bytes, expires May '97)
  678.  
  679.     Modifications to the SSL protocol for TLS: 
  680.         <draft-ietf-tls-ssl-mods-00.txt> (9271 bytes, expires May '97)
  681.  
  682.     Secure FTP over SSL:
  683.         <draft-murray-auth-ftp-ssl-00.txt>
  684.             (14238 bytes, expires June '97)
  685.  
  686.     SSH Transport Layer Protocol (originally
  687.     <draft-ietf-tls-ssh-00.txt>)
  688.         <http://www.consensus.com/ietf-tls/tls-ssh-00.txt>
  689.             (44411 bytes, expired December '96)
  690.  
  691.  
  692. 4.8) What is the purpose of pad1 and pad2, and why were the numbers 0x36 
  693. and 0x5c chosen?
  694.  
  695.     The purpose of the construction of a "keyed-MAC" in the form of
  696.     HASH(K,pad2,HASH(K,pad1,text)). It was proposed by the cryptographer
  697.     Hugo Krawczyk of IBM as a much more secure alternative to traditional
  698.     MACs. In a paper last year he demonstrated a proof that even if the
  699.     hash function was relatively weak (as MD5 has since proven itself to
  700.     be) the addition of the secret key in the function makes it
  701.     significantly more secure. The particular method proposed by
  702.     Krawczyk is now known as an HMAC.
  703.  
  704.     The particular construction that Netscape uses for SSL is based on 
  705.     the original internet-draft, and since that time it has been revised 
  706.     such that it XORs the pads rather than appending them -- a nice 
  707.     consequence of which is that pads are of the same size whether you 
  708.     use  MD5 or SHA; it also allows for long keys and has some 
  709.     security advantages. This version may now be found as RFC 2104:
  710.  
  711.         <http://andrew2.andrew.cmu.edu/rfc/rfc2104.html>
  712.  
  713.     In the proposals we've seen for the IETF-TLS Working Group the
  714.     scheme SSL 3.0 uses will be replaced by the official RFC HMAC
  715.     technique.
  716.  
  717.     The particular pad bytes used are the ones defined in Krawczyk's
  718.     original HMAC paper.  We believe that they are relatively arbitrary.
  719.     The salient property is that half the bits differ: the hamming
  720.     distance between 0x36 and 0x5c is 4 out of a possible 8. We don't
  721.     know if the fact that each of the pads also has a hamming weight of
  722.     4 is significant or not.
  723.  
  724.  
  725. 4.9) Are you aware of any SSL toolkits supporting client authentication?
  726.  
  727.     SSLRef 3.0 and SSL Plus both support SSL 3.0 client authentication. 
  728.     SSLeay supports SSL 2.0 and 3.0 client authentication as well as the 
  729.     proposed TLS standard for client authentication.
  730.  
  731.  
  732. 4.10) What SSL implementations should I test against?
  733.  
  734.     There is no formal conformance testing, but Netscape does currently
  735.     offer an interoperability test server that has been used to test
  736.     conformance with many other implementations of SSL 3.0. This server
  737.     is located at
  738.         <https://ssl3.netscape.com/>
  739.  
  740.     Another interoperability test server can be found at:
  741.         <https://ssl3.c2.org>
  742.     
  743.     VeriSign also has an "Authentic Site" program listing various sites
  744.     that use SSL authentication. Also included is a test page that
  745.     requires that you present a valid VeriSign client certificate.
  746.     More information on the Authentic Site program is at
  747.         <http://www.verisign.com/authentic/>
  748.  
  749.     Client authentication can be tested at:
  750.         <https://in-103.infospace.com/>
  751.  
  752.  
  753. 4.11) What is the difference between SSL 2.0 and 3.0?
  754.  
  755.     Security improvements:
  756.  
  757.     1.  SSL 2.0 is vulnerable to a "man-in-the-middle" attack. An
  758.     active attacker can invisibly edit the list of ciphersuite
  759.     preferences in the hello messages to invisibly force both client and
  760.     server to use 40-bit encryption. SSL 3.0 defends against this
  761.     attack by having the last handshake message include a hash of all
  762.     the previous handshake messages.
  763.  
  764.     2.  SSL 2.0 uses a weak MAC construction, although post-encryption
  765.     seems to stop attacks. This is fixed in 3.0.
  766.  
  767.     3.  SSL 2.0 feeds padding bytes into the MAC in block cipher modes,
  768.     but leaves the padding-length field unauthenticated, which could
  769.     allow active attackers to delete bytes from the end of messages.
  770.     This, too, is fixed in 3.0.
  771.  
  772.     4.  In SSL 3.0, the Message Authentication Hash uses a full 128 bits
  773.     of keying material, even when using an Export cipher. In SSL 2.0,
  774.     Message Authentication used only 40 bits when using an Export
  775.     cipher.
  776.  
  777.     Functionality improvements:
  778.  
  779.     1.  In SSL 2.0, the client can only initiate a handshake at the
  780.     beginning of the connection. In 3.0, the client can initiate a
  781.     handshake routine, even in the middle of an open session. A server
  782.     can request that the client start a new handshake. Thus, the
  783.     parties can change the algorithms and keys used whenever they want.
  784.  
  785.     2.  SSL 3.0 allows the server and client to send chains of
  786.     certificates. This allows organizations to use a certificate
  787.     hierarchy that is more than two certifications deep.
  788.  
  789.     3.  SSL 3.0 has a generalized key exchange protocol.  It allows
  790.     Diffie-Hellman and Fortezza key exchanges and non-RSA certificates.
  791.  
  792.     4.  SSL 3.0 allows for record compression and decompression.
  793.  
  794.     Backward compatibility:
  795.  
  796.     1. SSL 3.0 can recognize an SSL 2.0 client hello and fall back to
  797.     SSL 2.0. An SSL 3.0 client can also generate an SSL 2.0 client
  798.     hello with the version set to SSL 3.0, so SSL 3.0 servers will
  799.     continue the handshake in SSL 3.0, and SSL 2.0 server will cause the
  800.     client to fall back to SSL 2.0.
  801.  
  802.     Other:
  803.  
  804.     1.  SSL 3.0 separates the transport of data from the message layer.
  805.     In 2.0, each packet contained only one handshake message. In 3.0, a
  806.     record may contain part of a message, a whole message, or several
  807.     messages. This requires different logic to process packets into
  808.     handshake messages.  Therefore, the formatting of the packets had to
  809.     be completely changed.
  810.  
  811.     2.  Cipher specifications, handshake messages, and other constants
  812.     are different.
  813.  
  814.  
  815. ------------------------------
  816.  
  817. 5) CERTIFICATE RELATED QUESTIONS
  818.  
  819. This section contains information on certificates used by the SSL
  820. protocol.
  821.  
  822.  
  823. 5.1) How does Netscape handle client certificates in Communicator 4.X? 
  824. Navigator 3.X?
  825.  
  826.     Netscape describes their framework for web-based key generation and
  827.     certificate issuing on their web pages at
  828.         <http://home.netscape.com/eng/security/certs.html>
  829.  
  830.  
  831. 5.2) What is the format of the SSL certificates used by Netscape
  832. Navigator?
  833.  
  834.     Netscape has documented their SSL 2.0 certificate format at
  835.         <http://home.netscape.com/newsref/std/ssl_2.0_certificate.html>.
  836.  
  837.  
  838. 5.3) I am distributing load on several different web servers and I
  839. don't want to have to have a different certificate for each. How can
  840. I do this?
  841.  
  842.     When establishing a secure connection in SSL, many SSL clients
  843.     applications, including Netscape's Navigator, check the common name
  844.     of the certificate against the name of the site in the URL. If it
  845.     doesn't match, the client application warns the user. Thus the
  846.     preferred format of a common name of an SSL server is a simple DNS 
  847.     name like "www.consensus.com".
  848.  
  849.     To support multiple servers you can use a round-robin DNS to send
  850.     each request for "www.consensus.com" to different IP addresses. As
  851.     Netscape Navigator does not check to see that the IP address matches
  852.     the original domain name (reverse-IP), this will work for each
  853.     round-robin server.
  854.  
  855.     Netscape's Navigator will also allow for some simple pattern
  856.     matching. Netscape has documented a number of different possibilities
  857.     in their SSL 2.0 Certificate Format web pages at:
  858.         <http://home.netscape.com/newsref/std/ssl_2.0_certificate.html>
  859.  
  860.     Note, however, none of these regular expression/pattern matching
  861.     choices are accepted by VeriSign. In the past they have accepted
  862.     server certificate common names with regular expressions, but these
  863.     are no longer allowed.
  864.  
  865.     Other CAs may have different policies regarding use of regular
  866.     expressions in common names.
  867.  
  868.  
  869. 5.4) When comparing a URL against the common name of the certificate,
  870. why don't you do a reverse-DNS lookup?
  871.  
  872.     DNS is not a secure name service, and trying to treat it like one
  873.     could be a security hole. The purpose of checking the common name
  874.     against the URL is to make sure that at least the user's expectation
  875.     of what site the user is visiting is not compromised.
  876.  
  877.  
  878. 5.5) Does Netscape require hierarchical naming (that is, distinguished
  879. names) for its certificates?
  880.  
  881.     Yes, Netscape requires distinguished names.
  882.  
  883.  
  884. 5.6) Where can I get more information on certificates?
  885.  
  886.     PKIX is an IETF working group dedicated to providing standards 
  887.     for an X509-based PKI. You can find their charter at:
  888.     <http://www.ietf.org/html.charters/pkix-charter.html>   
  889.     
  890.     VeriSign, the default CA (Certificate Authority) used by Netscape
  891.     and most other WWW browsers has a FAQ at:
  892.         <http://digitalid.verisign.com/id_faqs.htm>
  893.  
  894.     Entrust has a primer on Web Security with an emphasis on
  895.     Certificate Authorities at:
  896.     <http://www.entrust.com/products/library/primer.htm>
  897.  
  898.     There is also a good resource of links to a variety of certificate 
  899.     technical and policy issue sites available at:
  900.         <http://www.xcert.com/~marcnarc/PKI/>
  901.  
  902.  
  903. 5.7) What other CAs exist besides VeriSign?
  904.  
  905.     We know of these CAs:
  906.  
  907.         Thawte Consulting <http://www.thawte.com/certs/>
  908.         COST Computer Security Technologies <http://www.cost.se/>
  909.         CompuSource <http://www.compusource.co.za/id/personal/>
  910.         XCert <http://www.xcert.com>
  911.  
  912.     Numerous other CAs now exist; additional links will be included in 
  913.     the replacement TLS/SSL FAQ intended for the future.
  914.     
  915.     
  916. 5.8) How do I set up my own Certificate Authority?
  917.  
  918.     There is some support for creating your own CA in SSLeay; there is
  919.     information on how to integrate it with Netscape available at:
  920.         <http://www.webvision.com/developers_new/casetup.html>
  921.  
  922.     Several specific products also exist; additional links will be 
  923.     included in the replacement TLS/SSL FAQ intended for the future.
  924.  
  925.  
  926. 5.9) What criteria should I use in deciding between one CA and another?
  927.  
  928.     The purpose of a Certificate Authority is to bind a public key to
  929.     the common name of the certificate, and thus assure third parties
  930.     that some measure of care was taken to ensure that this binding
  931.     is valid. A measure of a Certificate Authority is their "Policy
  932.     Statement" which states what measures they take for each class of
  933.     certificate they offer to ensure that this binding of identity
  934.     with public key is valid.
  935.  
  936.  
  937. 5.10) What are Attribute Certificates?
  938.  
  939.     Attribute Certificates are a new type of certificate proposed by
  940.     Netscape. These are signed objects that assert additional properties
  941.     about a particular identity certificate.
  942.  
  943.     An attribute cert has no associated key pair and consequently cannot
  944.     be used to establish identity. Informally, one can think of them as
  945.     a mechanism for extending the attributes of an identity certificate
  946.     without requiring that the identity certificate be reissued.
  947.  
  948.     More details of the proposal are at
  949.         <http://lists.w3.org/Archives/Public/ietf-tls/msg00796.html>
  950.  
  951.  
  952. ------------------------------
  953.  
  954. 6) SSL IMPLEMENTATION ISSUES
  955.  
  956. This section offers specific implementation details of different SSL
  957. clients and servers that are not specific to the protocol.
  958.  
  959.  
  960. ------------------------------
  961.  
  962. 6.1) NETSCAPE QUESTIONS
  963.  
  964. This is not an official statement by Netscape, and Netscape has not 
  965. reviewed this for accuracy. For additional information, please see:
  966.  
  967.     <http://home.netscape.com/info/security-doc.html> 
  968.     <http://home.netscape.com/eng/security/>
  969.  
  970.  
  971. 6.1.1) I just downloaded a new version of Netscape's browser, and it
  972. doesn't have 128-bit encryption. What version(s) of the browser have
  973. 128-bit encryption?
  974.  
  975.     All versions of Netscape Navigator and Communicator, except "Preview
  976.     Release" versions, are available in two flavors: a "domestic" flavor
  977.     with 128-bit encryption for use in the USA and Canada, and an 
  978.     "export" or "international" flavor with only 40-bit encryption. 
  979.     (There is also a third flavor of Communicator 4.x available for use 
  980.     in France.) Preview releases are only available in the export flavor. 
  981.     To get 128-bit encryption, you must download the U.S. flavor.
  982.  
  983.  
  984. 6.1.2) I just downloaded a newly released version of Netscape's browser
  985. and my bank's server tells me my browser does not have adequate
  986. security. What's wrong?
  987.  
  988.     Here are the likely explanations for this:
  989.  
  990.     a) You have downloaded an "export" flavor of the browser with only
  991.     40-bit encryption, but your bank requires that you use the "domestic"
  992.     flavor of the browser with 128-bit encryption. In this case, you must
  993.     download the domestic 128-bit version.
  994.  
  995.     b) Your bank's server keeps a list of the browser versions with which 
  996.     it will work, and that list has not yet been updated to include the 
  997.     very latest version(s) of Netscape's browser. In this case, please 
  998.     ask your bank to add the newest version of Netscape's browser to 
  999.     their server's list of acceptable versions. Note that many banks will 
  1000.     not accept "Preview Release" versions because they do not contain 
  1001.     domestic (128-bit) encryption.
  1002.  
  1003.  
  1004. 6.1.3) I downloaded a version of Netscape's browser that is newer than
  1005. version 4.05. Now, when I go to certain https web sites that used to
  1006. work for me (like my bank) I get an error message telling me that
  1007. "Netscape has received bad data from the server." I've been told the 
  1008. problem is with SSL v3 in my new browser, and that I should disable 
  1009. SSL v3 in my browser. What's wrong with SSL v3 in these new browsers?
  1010. Should I disable it?
  1011.  
  1012.     Newer versions of Netscape's browsers enforce the legal export 
  1013.     control requirements of the SSL v3 specification and will not work 
  1014.     with servers that violate the export control provisions of the SSL v3 
  1015.     specification.
  1016.  
  1017.     Some SSL servers do not properly follow the SSL v3 specification's
  1018.     requirements for the U.S. Government's export control regulations.
  1019.     Netscape's server products, and most other brands of server products,
  1020.     conform to the specification, but a few others do not.
  1021.  
  1022.     We strongly advise you to NOT disable SSL v3 in your browser. If you 
  1023.     do disable SSL v3, you lose the extra security protections of SSL v3
  1024.     with ALL the https web sites you visit. By keeping SSL v2 and v3
  1025.     enabled in your browser, you get the best protection each site can
  1026.     provide.
  1027.  
  1028.     Please ask the failing web site to upgrade to conforming servers.
  1029.  
  1030.     Web sites whose servers violate the specification have several 
  1031.     options at their disposal, including falling back on the less secure 
  1032.     SSL v2, by disabling the non-conformant SSL v3 in their servers, or 
  1033.     replacing their servers with servers that conform to the SSL v3 spec.
  1034.  
  1035.  
  1036. 6.1.4) Do Netscape's browsers cache data on disk that has been received
  1037. via https?
  1038.  
  1039.     Navigator 3.0 and Communicator 4.x have an option to allow on-disk
  1040.     caching of data fetched over SSL connections. The default setting is 
  1041.     to not cache https data on disk.
  1042.  
  1043.     In Navigator 2.0, documents fetched using SSL were cached in the same
  1044.     way as non-SSL documents. You could use the "Pragma: no-cache" HTTP
  1045.     header to disable caching for a particular page.
  1046.  
  1047.     In Navigator 1.0, documents fetched with SSL were not cached on disk.
  1048.  
  1049.  
  1050. 6.1.5) Is the cached data encrypted using some key?
  1051.  
  1052.     No, Navigator and Communicator do not encrypt documents that are 
  1053.     stored in the cache.
  1054.  
  1055.  
  1056. 6.1.6) Does Netscape use "regular" RSA libraries (such as BSAFE) or
  1057. "custom" RSA code? More specifically, is Netscape using BSAFE 3.0?
  1058.  
  1059.     Netscape is a BSAFE source licensee. Much of the code in BSAFE 3.0 
  1060.     has been integrated into Netscape's products. However, the BSAFE API 
  1061.     is not available to plugins.
  1062.  
  1063.  
  1064. 6.1.7) Are the 512-bit RSA keys used by exportable servers generated on 
  1065. the fly by Netscape's servers? How often are they changed?
  1066. Does the Netscape server take care of changing them automatically?
  1067.  
  1068.     In Netscape's server products, if the server's public key is longer 
  1069.     than 512 bits, the server generates a temporary 512-bit export key at 
  1070.     start-up time. This key is regenerated only when the server is 
  1071.     restarted.  
  1072.  
  1073.  
  1074. 6.1.8) How can additional root CA certificates be added to the
  1075. browser's certificate database?
  1076.  
  1077.     Root keys for CA (Certificate Authority) certificates may be loaded
  1078.     using an SSL connection to a previously unknown CA. Please see:
  1079.  
  1080.     <http://home.netscape.com/eng/security/comm4-cert-download.html>
  1081.  
  1082.     for more information. Also, new releases of the Navigator have added 
  1083.     additional CA root keys.
  1084.  
  1085.  
  1086. 6.1.9) What X.509v3 certificate extensions are supported by the various
  1087. versions of Netscape browsers?
  1088.  
  1089.     Please see <http://home.netscape.com/eng/security/certs.html>.
  1090.  
  1091.  
  1092. 6.1.10) The Help Information for Netscape's Enterprise server indicates
  1093. that the server supports 6 ciphers for SSL 2.0 and 6 ciphers for SSL
  1094. 3.0. However, the Encryption|Security Preferences menu in the server
  1095. Manager displays only 2 choices for SSL 2.0 and 3 choices for SSL 3.0.
  1096. How can I select the other choices?
  1097.  
  1098.     The Enterprise server is available in two flavors, the "domestic" 
  1099.     flavor with 128-bit encryption for use in the USA and Canada, and the 
  1100.     "export" or "international" flavor with only 40-bit encryption. If 
  1101.     you do not have all the ciphers, then you have the export flavor of 
  1102.     the server. If you want to use the others, you must use the domestic 
  1103.     (non-export) flavor.
  1104.  
  1105.  
  1106. 6.1.11) When will Netscape support SSL sockets for Java browser applets? 
  1107.  
  1108.     There are presently no announced plans to do so.
  1109.  
  1110.  
  1111. ------------------------------
  1112.  
  1113. 6.2) MICROSOFT QUESTIONS
  1114.  
  1115. The text for sub-section 6.2 was grabbed from various documents
  1116. found at
  1117.  
  1118.     <http://www.microsoft.com/workshop/security/default.asp>
  1119.  
  1120.  
  1121. 6.2.1) Which of Microsoft's products will support SSL?
  1122.  
  1123.     Internet Explorer 3.0 provides support for SSL versions 2.0 and 3.0
  1124.     and for Private Communication Technology (PCT) version 1.0. It will
  1125.     include support for the Transport Layer Security Protocol (TLS),
  1126.     which is being considered by IETF.
  1127.  
  1128.  
  1129. 6.2.2) Which Microsoft products support Client Authentication?
  1130.  
  1131.     Client authentication as implemented by Microsoft Internet Explorer
  1132.     3.0 is interoperable with popular Web servers that support secure
  1133.     sockets layer (SSL) 3.0 client authentication.
  1134.  
  1135.     Internet Information Server 3.0 supports client authentication using 
  1136.     standards-based X.509 version 3 certificates. Webmasters can easily 
  1137.     add client authentication to their Web sites by creating an Active 
  1138.     Server Pages (ASP) application.
  1139.  
  1140. ------------------------------
  1141.  
  1142. 7) SSL TOOKIT QUESTIONS
  1143.  
  1144. This section offers specific details of different SSL development
  1145. toolkits that are not specific to the protocol.
  1146.  
  1147.  
  1148. ------------------------------
  1149.  
  1150. 7.1) SSLREF QUESTIONS
  1151.  
  1152. This subsection contains information on SSLRef 3.0 which was
  1153. codeveloped by Netscape Communications Corp. of Mountain View,
  1154. California <http://home.netscape.com/> and Consensus Development
  1155. Corporation of Berkeley, California <http://www.consensus.com/>.
  1156.  
  1157.  
  1158. 7.1.1) What is SSLRef 3.0?
  1159.  
  1160.     SSLRef 3.0 is a reference implementation of the SSL (Secure Sockets
  1161.     Layer) protocol. SSLRef 3.0 is intended to aid and accelerate
  1162.     developers' efforts to provide security within TCP/IP applications.
  1163.     It can also be used to qualify other implementations of version 3.0
  1164.     of the SSL protocol.
  1165.  
  1166.     SSLRef 3.0 consists of a software library, distributed as ANSI C
  1167.     source-code, that can be compiled on Windows 95/NT and Solaris
  1168.     platforms and then linked into TCP/IP application programs. SSLRef
  1169.     3.0 was also designed to be easily ported to a wide variety of
  1170.     other platforms and operating systems.
  1171.  
  1172.     More information on SSLRef can be found at
  1173.         <http://home.netscape.com/newsref/std/sslref.html>
  1174.  
  1175.     If you are a US citizen you can download SSLRef 3.0 at
  1176.     <http://test-drive.netscape.com/tdrive-new/sslref.html>
  1177.  
  1178.  
  1179. 7.1.2) How can I license SSLRef 3.0? What does it cost? With what
  1180. restrictions?
  1181.  
  1182.     The SSLRef 3.0 distribution includes a license for non-commercial
  1183.     use. For commercial licensing, send mail to <sslref@netscape.com>.
  1184.  
  1185.     The SSLRef 3.0 commercial license is Part Number 70-01128-00 and the
  1186.     price is $30,000. The license agreement is a flat one-time fee, not
  1187.     a recurring royalty.
  1188.  
  1189.     SSLRef 3.0 may not be exported. However, the encryption options in
  1190.     SSLRef 3.0 can be limited to make exportable products.
  1191.  
  1192.     SSLRef 3.0 does not include an RSA/BSAFE license for required
  1193.     cryptographic functions. Most users would use BSAFE.
  1194.  
  1195.         For BSAFE information contact RSA at
  1196.             <http://www.rsa.com/>
  1197.  
  1198.  
  1199. ------------------------------
  1200.  
  1201. 7.2) SSL PLUS QUESTIONS
  1202.  
  1203. This sub-section contains information specific to the SSL Plus: SSL
  1204. 3.0 Integration Suite(tm) software toolkit developed by Consensus
  1205. Development Corporation of Berkeley, California
  1206. <http://www.consensus.com/>.
  1207.  
  1208.  
  1209. 7.2.1) What is the relationship between SSLRef and SSL Plus?
  1210.  
  1211.     SSLRef 3.0 was written by Netscape Development Corporation and
  1212.     Consensus Development Corporation. SSL Plus, a derivative of
  1213.     SSLRef 3.0, is fully supported and offers unique value-added
  1214.     features.
  1215.  
  1216.     SSL Plus 2.0 includes numerous updates to SSLRef 3.0, support, a 
  1217.     VeriSign certificate request tool, and a "signer" file format for 
  1218.     storing keys and certificates. It is qualified for additional 
  1219.     platforms, and system integration services are available. When the 
  1220.     TLS spec becomes official, SSL Plus will be upgraded to that new 
  1221.     protocol.  
  1222.  
  1223.     SSLRef 3.0 offers 4 ciphersuites:
  1224.  
  1225.       * RSA authenticated, unencrypted, with MD5
  1226.         (SSL_RSA_WITH_NULL_MD5)
  1227.  
  1228.       * RSA authenticated with exportable RC4 encryption, and MD5
  1229.         (SSL_RSA_EXPORT_WITH_RC4_40_MD5)
  1230.  
  1231.       * RSA authenticated with DES encryption, and SHA
  1232.         (SSL_RSA_WITH_DES_CBC_SHA)
  1233.  
  1234.       * Diffie-Hellman anonymous key exchange with DES encryption,
  1235.         and SHA
  1236.         (SSL_DH_anon_WITH_DES_CBC_SHA)
  1237.  
  1238.     SSL Plus 2.0 adds support for an additional 6 ciphersuites:
  1239.  
  1240.       * RSA authenticated, unencrypted, with SHA
  1241.         (SSL_RSA_WITH_NULL_SHA)
  1242.  
  1243.       * RSA authenticated with non-exportable RC4 encryption, with
  1244.         MD5 or SHA
  1245.         (SSL_RSA_WITH_RC4_128_MD5 & SSL_RSA_WITH_RC4_128_SHA)
  1246.  
  1247.       * RSA authenticated with Triple-DES encryption, with SHA
  1248.         (SSL_RSA_WITH_3DES_EDE_CBC_SHA)
  1249.  
  1250.       * Diffie-Hellman anonymous key exchange with RC4 encryption,
  1251.         with MD5
  1252.         (SSL_DH_anon_WITH_RC4_128_MD5 &
  1253.          SSL_DH_anon_WITH_3DES_EDE_CBC_SHA)
  1254.  
  1255.       * Diffie-Hellman anonymous key exchange with Triple-DES
  1256.         encryption and SHA
  1257.         (SSL_DH_anon_WITH_RC4_128_MD5 &
  1258.          SSL_DH_anon_WITH_3DES_EDE_CBC_SHA)
  1259.  
  1260.     For more information on SSL Plus features see
  1261.         <http://www.consensus.com/SSLPlus/sslplus_stats.html>
  1262.  
  1263.  
  1264. 7.2.2) What is the relationship between SSL Plus and SSLRef 2.0?
  1265.  
  1266.     There is no relationship between SSLRef 2.0 and SSL Plus -- SSL Plus
  1267.     was originally based on SSLRef 3.0 which was not based on SSLRef 2.0.
  1268.  
  1269.  
  1270. 7.2.3) How can I license SSL Plus?
  1271.  
  1272.     SSL Plus is available for commercial use only. Certicom will work 
  1273.     with you to provide a license tailored to fit your company's business 
  1274.     model, whether you prefer flat yearly licenses, royalty based payment 
  1275.     or even one time buyouts. 
  1276.  
  1277.     Since SSL Plus is a protocol toolkit, SSL Plus customers will also 
  1278.     require a license for one of the standard crytographic libraries such 
  1279.     as Certicom's Security Builder, or RSA's BSAFE. 
  1280.  
  1281.     You can get more information about SSL Plus at 
  1282.     <http://www.consensus.com/SSLPlus>, and about Certicom's Security 
  1283.     Builder toolkit at <http://www.certicom.com/cSecure/sdk.htm>
  1284.  
  1285.     In addition, you can contact Consensus directly for more information 
  1286.     on SSL Plus, including pricing, technical information, or more 
  1287.     information about cryptographic library tools, at 
  1288.     <mailto:sales@consensus.com> or at 510/649-3300.
  1289.  
  1290.  
  1291. 7.2.4) Is there any relationship between SSL Plus and Winsock 1.1 or
  1292. Winsock 2.0? Which Winsock would you recommend using to test our
  1293. SSL? Does it matter if Winsock 1.1 or 2.0 architecture is used?
  1294.  
  1295.     No -- SSL Plus is designed to be transport independent and work with
  1296.     both socket and stream styles of I/O. SSL Plus includes some
  1297.     examples of using WinSock 1.1 in the Win32 builds of our sample
  1298.     code. However, we recommend that you write your own callback code if
  1299.     you want better handling of your I/O than what our sample routines
  1300.     provide.
  1301.  
  1302.  
  1303. 7.2.5) How does the data flow within the application, WinSock, SSL,
  1304. TCP/IP stack layers?
  1305.  
  1306.     The short answer is that you insert SSL Plus between your I/O and
  1307.     your application code.
  1308.  
  1309.     Basically, you call SSL Plus instead of your read and write. SSL
  1310.     Plus does its stuff and calls your callback code to do the I/O. Data
  1311.     comes through your I/O routines, through SSL Plus, and then finally
  1312.     to your application.  SSL Plus only manages the data flowing through
  1313.     the connection; it does not handle setting up and tearing down the
  1314.     underlying network connection; your application should open the
  1315.     network connection, then hand it off to SSL Plus for SSL handshaking
  1316.     and data transfer. (This step is not shown in the diagram).
  1317.  
  1318.     Normal:
  1319.  
  1320.          -------------
  1321.         | Application |
  1322.          -------------
  1323.              ^
  1324.              | I/O Calls
  1325.              v
  1326.          -------------
  1327.         | WinSock     |
  1328.          -------------
  1329.              ^
  1330.              | TCP Calls
  1331.              v
  1332.          -------------
  1333.         | Internet    |
  1334.          -------------
  1335.  
  1336.  
  1337.     SSL Plus:
  1338.  
  1339.          -------------
  1340.         | Application |
  1341.          -------------
  1342.              ^
  1343.              | SSL I/O Calls
  1344.              v
  1345.          -------------     I/O Callbacks   --------------------
  1346.         | SSL Plus    | <---------------->| Your Callback Code |
  1347.          -------------                     --------------------
  1348.                                                     ^
  1349.                                                     | I/O Calls
  1350.                                                     v
  1351.                                                -------------
  1352.                                               | WinSock     |
  1353.                                                -------------
  1354.                                                     ^
  1355.                                                     | TCP Calls
  1356.                                                     v
  1357.                                                -------------
  1358.                                               | Internet    |
  1359.                                                -------------
  1360.  
  1361.  
  1362. 7.2.6) With the WinSock 2.0 architecture, the application need only chose 
  1363. an appropriate SSL-enabled service provider. Does SSL Plus support this?
  1364.  
  1365.     With WinSock 2.0 there is some discussion of functionality that 
  1366.     allows you to create a module that you could add to WinSock 2.0.
  1367.  
  1368.     At this time we do not believe that this functionality is actually
  1369.     shipping (as Microsoft was supporting PCT but is now supporting
  1370.     SSL 3), but we do know that it is part of their plans. See the
  1371.     MS-ISF (Microsoft Internet Security Framework) description at
  1372.      <http://premium.microsoft.com/msdn/library/backgrnd/html/
  1373.         msdn_misf.htm>
  1374.  
  1375.     We can't speak to when or if Microsoft will add it to their system
  1376.     software, or if another third-party offers such a module.
  1377.  
  1378.     Meanwhile, there has been some discussion on what changes might be
  1379.     required under WinSock 2.0 to do SSL. See:
  1380.         <http://home.netscape.com/newsref/std/ssl_integration.html>
  1381.  
  1382.  
  1383. 7.2.7) Does SSL Plus support yielding?
  1384.  
  1385.     SSL Plus includes support for processor yielding during
  1386.     cryptographic operations. Because developers provide their own I/O
  1387.     routines, they can do yielding during I/O. Our sample code include 
  1388.     examples of I/O yielding.
  1389.  
  1390.  
  1391. 7.2.8) I don't understand the nomenclatures of constants such as
  1392. "SSL_RSA_EXPORT_WITH_RC4_40_MD5" -- where are they defined?
  1393.  
  1394.     They are actually defined by the SSL 3.0 specification, but also see 
  1395.     section 7.2.1 for an overview.
  1396.  
  1397.  
  1398. 7.2.9) In what order are the cipher suites called? 
  1399.  
  1400.     The default order of the cipher suites is:
  1401.     
  1402.         SSL_RSA_WITH_3DES_EDE_CBC_SHA
  1403.         SSL_RSA_WITH_RC4_128_SHA
  1404.         SSL_RSA_WITH_RC4_128_MD5
  1405.         SSL_RSA_WITH_DES_CBC_SHA
  1406.         SSL_RSA_EXPORT_WITH_RC4_40_MD5
  1407.         SSL_RSA_EXPORT_WITH_DES40_CBC_SHA
  1408.         SSL_RSA_EXPORT_WITH_RC2_CBC_40_MD5
  1409.         SSL_DH_anon_WITH_3DES_EDE_CBC_SHA
  1410.         SSL_DH_anon_WITH_RC4_128_MD5
  1411.         SSL_DH_anon_WITH_DES_CBC_SHA
  1412.         SSL_RSA_WITH_NULL_SHA
  1413.         SSL_RSA_WITH_NULL_MD5
  1414.  
  1415.  
  1416. 7.2.10) Can I change the order of the cipher suites?
  1417.  
  1418.     Yes. This is easily done with the SSLSetCipherSuites function.
  1419.  
  1420.  
  1421. 7.2.11) Does SSL Plus support compression?
  1422.  
  1423.     Not as of 2.0. If there is a specific customer requirement, or if a 
  1424.     compression cipher suite is defined we expect to support it in the
  1425.     future, but otherwise we have no plans here.
  1426.  
  1427.  
  1428. 7.2.12) In the function SSLWriteRecord(), the data buffer is
  1429. copied, encrypted, then enqueued on the SSL write queue. The function
  1430. then returns. What thread services the write queue? How is the
  1431. thread created?
  1432.  
  1433.     The write queue is serviced by the public function called
  1434.     SSLServiceWriteQueue(). It is called in a number of places in
  1435.     ssltrspt.c, including with every call to SSLWrite(). Data to be
  1436.     written is sent to the I/O layer as you exit out of the write
  1437.     function (for example, right near the bottom of SSLWrite).
  1438.  
  1439.     If SSLWrite() returns SSLWouldBlockError, then make a call to
  1440.     SSLServiceWriteQueue() to service the write queue. (You could
  1441.     instead make a call to SSLWrite() with more data to be written, but
  1442.     this is unlikely.)
  1443.  
  1444.     The write queue is not serviced by a separate execution thread. The
  1445.     write queue mechanism was designed to support non-blocking I/O
  1446.     without undue overhead.
  1447.  
  1448.  
  1449. 7.2.13) When I call SSLRead(), on returning, the length argument should 
  1450. be replaced with the number of bytes actually read. In practice, this 
  1451. doesn't seem to be happening. What am I doing wrong?
  1452.  
  1453.     The difficulty is that it's hard for SSL to precisely emulate the
  1454.     behavior of Unix-style socket calls.
  1455.  
  1456.     The problem is that you are using SSL Plus in its blocking mode; if
  1457.     you return SSLWouldBlock from your I/O Read callback, the library
  1458.     will return the data it has along with the SSLWouldBlock error.
  1459.  
  1460.     The best way to solve this is always to know how much data you're
  1461.     waiting for and to request exactly that much. I know this doesn't 
  1462.     work with a lot of free-form Internet protocols.
  1463.  
  1464.     Alternatively, you would like the call to block until it gets some
  1465.     data, then return it to you, even if it's less than 512 bytes.
  1466.     Ideally, you'd like to do this without busy-looping the CPU waiting
  1467.     for data. The best way to do this using SSL Plus is to write a
  1468.     wrapper for SSLRead() which does the following:
  1469.  
  1470.         * Make a blocking select() call until there is some data
  1471.           available on the TCP/IP connection over which you're speaking
  1472.           SSL. This will cause you to block in a friendly way until data
  1473.           arrives.
  1474.  
  1475.         * Call SSLRead(). If zero bytes are returned from the read,
  1476.           loop and do the select() again. Otherwise, return whatever
  1477.           came back.
  1478.  
  1479.         * Make your Read() callback non-blocking. The easiest thing to
  1480.           do is to check how much data is available on the incoming
  1481.           connection and return SSLWouldBlockErr if you can't completely
  1482.           fulfill the request. (You can optionally read what data there
  1483.           is and return it first; this won't affect functionality).
  1484.  
  1485.     This will result in the following behavior:
  1486.  
  1487.     1. Your program will block gracefully in the select() call until
  1488.        something arrives on the connection.
  1489.  
  1490.     2. You will then ask SSL Plus to read some data.
  1491.  
  1492.     3. SSL Plus will ask the Read() callback to read the header of the
  1493.        next record (3 or 5 bytes).
  1494.  
  1495.     4. The Read() callback will fulfill that, if possible
  1496.  
  1497.     5. SSL Plus will ask to read the body of the record (whose length
  1498.        will be equal to how much data was sent by the other side, plus
  1499.        MAC and encryption padding).
  1500.  
  1501.     6. The Read() callback will fulfill that, if possible.
  1502.  
  1503.     7. If the amount of data received is greater than or equal to how
  1504.        much was requested in 2., the data will be returned
  1505.  
  1506.     8. Otherwise, go back to 3.
  1507.  
  1508.     What will happen in practice looks something like this: because the
  1509.     SSL peer on the other end of the connection generates record layer
  1510.     records monolithically, and they're relatively small, the header and
  1511.     content of a record will arrive at your machine all together. Thus,
  1512.     when your select() call returns, you will be able to successfully
  1513.     read a header and body without blocking. When SSL Plus goes to read
  1514.     another one, your Read() callback will see that there's no data
  1515.     available on the connection (assuming another record hasn't arrived)
  1516.     and return SSLWouldBlockErr. SSL Plus will then return the data it
  1517.     has received and the error SSLWouldBlockErr; you can return that
  1518.     data as a partial completion of the desired read.
  1519.  
  1520.     If a partial record arrives, your select() will wake up, but SSL
  1521.     Plus won't be able to decrypt and check a complete record before the
  1522.     Read() callback returns SSLWouldBlockErr; thus, your read will
  1523.     return with zero bytes returned. Since this isn't the behavior your
  1524.     client expects, you should select() again until more data arrives,
  1525.     hopefully completing the record.
  1526.  
  1527.  
  1528. 7.2.14) If session cache is stored in a database, can multiple Unix
  1529. processes share the same session data?
  1530.  
  1531.     There is no information stored in the session database which can't
  1532.     be passed between processes. Specifically, there is no pointer
  1533.     indirection. Of course, you'll have to figure out how to pass
  1534.     session database records (and their changes or deletions) between
  1535.     processes; that is not part of SSL Plus.
  1536.  
  1537.  
  1538. ------------------------------
  1539.  
  1540. 7.3) SSLEAY QUESTIONS
  1541.  
  1542. This sub-section contains information specific to the SSLeay
  1543. toolkit developed by Eric Young <eay@mincom.com>
  1544.  
  1545.  
  1546. 7.3.1) Where is the SSLeay FAQ?
  1547.  
  1548.     There is a very complete SSLeay FAQ at:
  1549.         <http://www.psy.uq.oz.au/~ftp/Crypto/>
  1550. ------------------------------------------------------------------------
  1551. .. Shannon Appel                    Consensus Development Corporation ..
  1552. .. Research Assistant            a subsidiary of Certicom Corporation ..
  1553. .. <SAppel@consensus.com>                     2930 Shattuck Ave. #206 ..
  1554. .. <http://www.consensus.com>                 Berkeley, CA 94705-1883 ..
  1555. .. <http://www.certicom.com>             o510/649-3300  f510/649-3301 ..
  1556.  
  1557.